package com.cy.src.aidldata;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by cy on 16-10-17.
 */

public class Packet implements Parcelable {

    public String name;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
    }

    public Packet() {
    }

    protected Packet(Parcel in) {
        this.name = in.readString();
    }

    public static final Parcelable.Creator<Packet> CREATOR = new Parcelable.Creator<Packet>() {
        @Override
        public Packet createFromParcel(Parcel source) {
            return new Packet(source);
        }

        @Override
        public Packet[] newArray(int size) {
            return new Packet[size];
        }
    };
}
